package com.zzcoder.mall.data.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@ApiModel(value = "商品分类")
@Data
@Table
@Entity
public class PmsCategory extends BaseEntity {
    @ApiModelProperty(value = "分类名称")
    @Column
    private String name;

    @ApiModelProperty(value = "父级分类ID")
    @Column
    private Long parentId;

    @ApiModelProperty(value = "根级分类ID")
    @Column
    private Long rootId;

    @ApiModelProperty(value = "分类层级")
    @Column
    private Integer level;
}
